<?php

class Canvasser extends CI_Controller {

	public function __construct()
	{
		parent::__construct();
	}
	
	function index()
	{
		$this->sourcing();
	}	
	
	function sourcing()
	{	
		$data['requisition'] = (object)array(
			'rr_number' => 854834,
			'requestor' => (object)array(
				'name' => 'Juan dela Cruz'
			),
			'approver' => (object)array(
				'name' => 'Pedro Penduko'
			),			
			'request_date' => date('M. d, Y'),
			'materials' => array(
				(object)array(
					'id' => 1,
					'name' => 'Ballpen',
					'quantity' => '95',
					'unit' => 'Box',
					'code' => '4369'
				),
				(object)array(
					'id' => 2,
					'name' => 'Paper',
					'quantity' => '50',
					'unit' => 'Rim',
					'code' => '8768'
				),
				(object)array(
					'id' => 3,
					'name' => 'Paper Clip',
					'quantity' => '250',
					'unit' => 'Box',
					'code' => '6684'
				)			
			)
		);
	
		$data['content'] = $this->load->view("canvasser/requisition_view", $data, true);
		
		$data['title'] = array( "Requisitions", "Canvasser", "Sourcing" );
		$this->load->view("main_view", $data);
	}
}